# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-influxdb
_pkgname=influxdb-python
pkgver=5.3.0
pkgrel=9
pkgdesc='Python client for InfluxDB.'
arch=('any')
url='https://github.com/influxdata/influxdb-python/'
license=('MIT')
depends=('python' 'python-requests' 'python-dateutil' 'python-six' 'python-pytz'
         'python-msgpack')
makedepends=('python-setuptools')
optdepends=('influxdb')
options=(!emptydirs)
source=("https://github.com/influxdata/influxdb-python/archive/v$pkgver.tar.gz")
sha512sums=('87129544b5bef8062d452447626b639b675bf6ba5076f38d4616a364fa6dfea6aa73beece239aeb8f2294314c4fe6bc7e3ae5d7e463592bd0f77ed3aaaff5557')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

